/*
 * @Author: xiaosihan 
 * @Date: 2024-06-22 01:50:08 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-08-19 21:29:24
 */

.messageListDemo {
    position: relative;
    display: inline-block;
    width: 360px;
    padding: 0px 10px;
    background-color: #ffffff;
    height: 100%;
    vertical-align: top;

    .header {
        height: 30px;
        padding: 10px;

        .num {
            margin-left: 6px;
            color: #999999;
            font-size: 12px;
        }

        // 隐藏标点
        .hidePoint {
            float: right;
            color: #999999;
        }

        .frstName {
            .style() {
                margin-left: -4px;
                float: right;
                border-radius: 50%;
                width: 31px;
                height: 31px;
                color: #ffffff;
                font-size: 16px;
                text-align: center;
                line-height: 31px;
            }

            &1 {
                .style();
                background-color: #05D67B;
            }

            &2 {
                .style();
                background-color: #5503FA;
            }

            &3 {
                .style();
                background-color: #FA6419;
            }
        }

    }

    .list {
        height: calc(100% - 100px);
        overflow-y: auto;
        overflow-x: hidden;
        border-bottom: 1px solid #F4F4F4;

        &::-webkit-scrollbar {
            width: 2px;
            height: 2px;
            background-color: rgba(0, 0, 0, 0);
        }

        &::-webkit-scrollbar-track {
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
            border-radius: 2px;
            background-color: rgba(0, 0, 0, 0);
        }

        &::-webkit-scrollbar-thumb {
            border-radius: 2px;
            box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
            background-color: #4E04D9;
        }

        .index {
            vertical-align: top;
            display: inline-block;
            margin: 1px -10px 1px 1px;
            background-color: #ffffff;
            padding: 10px 0px;
            z-index: 1;
            position: relative;

            .number {
                cursor: pointer;
                display: inline-block;
                width: 21px;
                height: 21px;
                line-height: 21px;
                text-align: center;
                font-size: 12px;
                border-radius: 50%;
                background-color: #5503FA;
                color: #ffffff;
            }

        }

        .lable_list {
            display: none;
            width: calc(100% - 20px);
            vertical-align: top;

            &.show {
                display: inline-block;
            }

            .lable_item {
                position: relative;
                border-left: 1px dashed #D0D0D0;
                margin: -1px;
                padding: 10px 10px 10px 20px;

                &:nth-child(1) {
                    padding: 0px 10px 10px 20px;
                }

                &:last-child {
                    border-bottom: 0px;
                }

                &:after {
                    content: "";
                    clear: both;
                    display: block;
                }

                .vertical_line {
                    position: absolute;
                    width: 1px;
                    height: 100%;
                    border-left: 1px dashed #D0D0D0;
                    top: 0px;
                    left: 35px;

                    &.latest {
                        height: 20px;
                    }
                }

                .flex {
                    display: flex;
                    margin-top: 10px;

                    .avatar {
                        display: inline-block;
                        width: 31px;
                        height: 31px;
                        border-radius: 50%;
                        margin-right: 10px;
                        vertical-align: middle;
                        z-index: 1;
                    }

                    .frstName {
                        .style() {
                            display: inline-block;
                            margin-right: 10px;
                            border-radius: 50%;
                            width: 31px;
                            height: 31px;
                            color: #ffffff;
                            font-size: 12px;
                            text-align: center;
                            line-height: 31px;
                        }

                        &1 {
                            .style();
                            background-color: #05D67B;
                        }

                        &2 {
                            .style();
                            background-color: #5503FA;
                        }

                        &3 {
                            .style();
                            background-color: #FA6419;
                        }
                    }
                }

                .delete {
                    font-size: 20px;
                    float: right;
                    color: #6a6a6a;
                    margin-right: 10px;
                }

                .reply {
                    color: #5503FA;
                }

                .content {
                    word-break: break-all;
                    flex: 1;
                    color: #000000;
                    font-size: 12px;

                    .user_name {
                        font-weight: bold;
                        margin-right: 4px;
                        color: #333333;
                    }

                }

                .time {
                    font-size: 12px;
                    margin-left: 40px;
                    color: #7F7F7F;
                    vertical-align: middle;
                }

                .replyBtn {
                    height: 20px;
                    font-size: 12px;
                    border-radius: 4px;
                    padding: 1px 2px 0px 2px;
                    background-color: #E9DAFF;
                    text-align: center;
                    float: right;
                    cursor: pointer;
                }

            }
        }
    }

    .empty {
        margin-top: 100px;
    }

    .input {
        margin: 15px;
        width: calc(100% - 30px);
        border: 1px solid #33333330;
        outline: none;
    }

    .inputBtns {
        text-align: right;

        .cancel {
            display: inline-block;
            background-color: #DCDCDC;
            width: 50px;
            text-align: center;
            height: 30px;
            line-height: 30px;
            border-radius: 4px;
            margin: 0 4px;
            cursor: pointer;
        }

        .public {
            display: inline-block;
            background-color: #E9DAFF;
            width: 50px;
            text-align: center;
            height: 30px;
            line-height: 30px;
            border-radius: 4px;
            margin: 0 4px;
            cursor: pointer;
        }
    }
}

.delete_tip {
    position: relative;
    --antd-arrow-background-color: #ffffff;

    :global(.ant-tooltip-inner) {
        background-color: #ffffff;
    }
}